import BaseModule from './app/base-module'

const BridgeDeviceEvent = {
  getMobileDevice() {
    return BaseModule.fireEventForAsync('getMobileDevice')
  },
  changeLightNess(isHigh) {
    return BaseModule.fireEventForAsync('screenLightNess', { isHigh })
  },
  getScreenLightNess() {
    return BaseModule.fireEventForAsync('getScreenLightNess')
  },
  getLocationInfo() {
    return BaseModule.fireEventForAsync('getLocationInfo')
  },
  showAppStoreProductPage() {
    return BaseModule.fireEventForAsync('showAppStoreProductPage')
  },
  takePhoto(type) {
    return BaseModule.fireEventForAsync('takePhoto', { type })
  },
  getContactInfo() {
    return BaseModule.fireEventForAsync('getContactInfo')
  },
  goAppSysSettings() {
    return BaseModule.fireEventForAsync('sysSettings')
  },
  ocrBankcard() {
    return BaseModule.fireEventForAsync('ocrBankcard')
  },
  ocrIDCard() {
    return BaseModule.fireEventForAsync('ocrIDCard')
  },
  localAuthentication() {
    return BaseModule.fireEventForAsync('localAuthentication')
  },
  liveness(params) {
    return BaseModule.fireEventForAsync('liveness', params)
  },
  sysShare(params) {
    return BaseModule.fireEventForAsync('sysShare', params)
  },
  getEncryptionData(params) {
    return BaseModule.fireEventForAsync('getEncryptionData', params)
  },
  pdfSignature(params) {
    return BaseModule.fireEventForAsync('pdfSignature', params)
  },
  pdfPreviewTime(params) {
    return BaseModule.fireEventForAsync('pdfPreviewTime', params)
  }
}

export default BridgeDeviceEvent;
